package zmz.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import zmz.dao.TeacherMapper;
import zmz.entity.Teacher;

@Service
public class TeacherServiceImpl implements TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;

    @Override
    @Transactional
    public int createTeacher(Teacher teacher) {
        teacherMapper.insertSelective(teacher);
        return  0;
    }
}
